<?php
require_once 'top/TopClient.php';
require_once 'top/RequestCheckUtil.php';
require_once 'top/request/UmpPromotionGetRequest.php';

$id = trim($_POST['id']);
if ($id) {
	$client = new TopClient();
	$client->appkey = '21170405';
	$client->secretKey = 'e7b2c2be477fcd7196e40c1f8b81a0ee';
	$req = new UmpPromotionGetRequest;
	$req->setItemId($id);
	$resp = $client->execute($req);
	error_log(date('Y-m-d H:i:s') . "\t" . $id .  "\r\n" . $resp . "\r\n", 3, __DIR__ .  '/log/UmpPromotionGetRequest_' . date('Y-m-d') . '.txt');
	echo($resp);
}
exit;